package com.ruoyi.service.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 被服务人信息对象 service_served
 * 
 * @author ZDL
 * @date 2024-11-27
 */
public class ServiceServed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 被服务人主键ID */
    private Long servedId;

    /** 绑定用户的主键ID */
    @Excel(name = "绑定用户的主键ID")
    private Long servedUserid;

    /** 姓名 */
    @Excel(name = "姓名")
    private String servedName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String servedIdnumber;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String servedTelephonenumber;

    /** 地址 */
    @Excel(name = "地址")
    private Long servedAddress;

    /** 就诊卡号 */
    @Excel(name = "就诊卡号")
    private String servedVisitid;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String servedSex;

    /** 与被服务人关系 */
    @Excel(name = "与被服务人关系")
    private String servedConnect;

    /** 要求服务日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "要求服务日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date servedDate;

    /** 要求服务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "要求服务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date servedTime;

    /** 创建者 */
    @Excel(name = "创建者")
    private String servedCreateBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date servedCreateTime;

    /** 更新者 */
    @Excel(name = "更新者")
    private String servedUpdateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date servedUpdateTime;

    /** 启用标志（0代表启用 2代表不启用） */
    @Excel(name = "启用标志", readConverterExp = "0=代表启用,2=代表不启用")
    private String servedUseFlag;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String servedDelFlag;

    /** 默认标志（0代表默认 2代表普通） */
    @Excel(name = "默认标志", readConverterExp = "0=代表默认,2=代表普通")
    private String servedDefaultFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String servedRemark;

    public void setServedId(Long servedId) 
    {
        this.servedId = servedId;
    }

    public Long getServedId() 
    {
        return servedId;
    }
    public void setServedUserid(Long servedUserid) 
    {
        this.servedUserid = servedUserid;
    }

    public Long getServedUserid() 
    {
        return servedUserid;
    }
    public void setServedName(String servedName) 
    {
        this.servedName = servedName;
    }

    public String getServedName() 
    {
        return servedName;
    }
    public void setServedIdnumber(String servedIdnumber) 
    {
        this.servedIdnumber = servedIdnumber;
    }

    public String getServedIdnumber() 
    {
        return servedIdnumber;
    }
    public void setServedTelephonenumber(String servedTelephonenumber) 
    {
        this.servedTelephonenumber = servedTelephonenumber;
    }

    public String getServedTelephonenumber() 
    {
        return servedTelephonenumber;
    }
    public void setServedAddress(Long servedAddress)
    {
        this.servedAddress = servedAddress;
    }

    public Long getServedAddress()
    {
        return servedAddress;
    }
    public void setServedVisitid(String servedVisitid) 
    {
        this.servedVisitid = servedVisitid;
    }

    public String getServedVisitid() 
    {
        return servedVisitid;
    }
    public void setServedSex(String servedSex) 
    {
        this.servedSex = servedSex;
    }

    public String getServedSex() 
    {
        return servedSex;
    }
    public void setServedConnect(String servedConnect) 
    {
        this.servedConnect = servedConnect;
    }

    public String getServedConnect() 
    {
        return servedConnect;
    }
    public void setServedDate(Date servedDate) 
    {
        this.servedDate = servedDate;
    }

    public Date getServedDate() 
    {
        return servedDate;
    }
    public void setServedTime(Date servedTime) 
    {
        this.servedTime = servedTime;
    }

    public Date getServedTime() 
    {
        return servedTime;
    }
    public void setServedCreateBy(String servedCreateBy) 
    {
        this.servedCreateBy = servedCreateBy;
    }

    public String getServedCreateBy() 
    {
        return servedCreateBy;
    }
    public void setServedCreateTime(Date servedCreateTime) 
    {
        this.servedCreateTime = servedCreateTime;
    }

    public Date getServedCreateTime() 
    {
        return servedCreateTime;
    }
    public void setServedUpdateBy(String servedUpdateBy) 
    {
        this.servedUpdateBy = servedUpdateBy;
    }

    public String getServedUpdateBy() 
    {
        return servedUpdateBy;
    }
    public void setServedUpdateTime(Date servedUpdateTime) 
    {
        this.servedUpdateTime = servedUpdateTime;
    }

    public Date getServedUpdateTime() 
    {
        return servedUpdateTime;
    }
    public void setServedUseFlag(String servedUseFlag) 
    {
        this.servedUseFlag = servedUseFlag;
    }

    public String getServedUseFlag() 
    {
        return servedUseFlag;
    }
    public void setServedDelFlag(String servedDelFlag) 
    {
        this.servedDelFlag = servedDelFlag;
    }

    public String getServedDelFlag() 
    {
        return servedDelFlag;
    }
    public void setServedDefaultFlag(String servedDefaultFlag) 
    {
        this.servedDefaultFlag = servedDefaultFlag;
    }

    public String getServedDefaultFlag() 
    {
        return servedDefaultFlag;
    }
    public void setServedRemark(String servedRemark) 
    {
        this.servedRemark = servedRemark;
    }

    public String getServedRemark() 
    {
        return servedRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("servedId", getServedId())
            .append("servedUserid", getServedUserid())
            .append("servedName", getServedName())
            .append("servedIdnumber", getServedIdnumber())
            .append("servedTelephonenumber", getServedTelephonenumber())
            .append("servedAddress", getServedAddress())
            .append("servedVisitid", getServedVisitid())
            .append("servedSex", getServedSex())
            .append("servedConnect", getServedConnect())
            .append("servedDate", getServedDate())
            .append("servedTime", getServedTime())
            .append("servedCreateBy", getServedCreateBy())
            .append("servedCreateTime", getServedCreateTime())
            .append("servedUpdateBy", getServedUpdateBy())
            .append("servedUpdateTime", getServedUpdateTime())
            .append("servedUseFlag", getServedUseFlag())
            .append("servedDelFlag", getServedDelFlag())
            .append("servedDefaultFlag", getServedDefaultFlag())
            .append("servedRemark", getServedRemark())
            .toString();
    }
}
